﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Reflection;
//using System.Reactive.Linq;

namespace Qplus.beans
{
    public class QUser
    {


        //[DataMember(Order = 0)]
        public int userID { get; set; }
        //[DataMember(Order = 1)]
        public string userName { get; set; }
        //[DataMember(Order = 2)]
        public string userLevel { get; set; }
        //[DataMember(Order = 3)]
        public int headType { get; set; }
        //[DataMember(Order = 4)]
        public string headValue { get; set; }
        //[DataMember(Order = 5)]
        public byte[] key { get; set; }
        //
        public string url { get; set; }
        //
        public long appID { get; set; }
        //
        public bool isForceLogout
        {
            
            set { isForceLogout = false; }
            get { return isForceLogout; }
        }


        /**
	     * 详细信息
	     */
        private UserInfo info = new UserInfo();

        /**
	     * 是否在线
	     */
        private Boolean isOnline = false;


        /**
	    * 是否正在登陆
	    */
        private Boolean isLogin = false;


        public void setIsLogin(Boolean IsLogin)
        {
            this.isLogin = IsLogin;
        }


        public UserInfo getInfo()
        {
            return info;
        }

        /**
         * 是否正在登陆
         * @return
         */
        public Boolean getIsLogin()
        {
            return this.isLogin;
        }


        public Boolean getIsOnline()
        {
            return this.isOnline;
        }

        public void setOnline(Boolean IsOnline)
        {
            this.isOnline = IsOnline;
        }
    }
}
